﻿using Microsoft.SharePoint;

namespace Lapointe.WebPartPageHistory.ListEventReceivers
{
    internal interface IHistory
    {
        /// <summary>
        /// Imports the specified item.
        /// </summary>
        /// <param name="sourceItem">The source item.</param>
        /// <param name="directory">The directory containing the data to import.</param>
        void Import(SPListItem sourceItem, string directory);

        /// <summary>
        /// Exports the specified item.
        /// </summary>
        /// <param name="sourceItem">The source item.</param>
        /// <param name="directory">The directory to store the exported data.</param>
        /// <param name="includeDependencies">if set to <c>true</c> include dependencies such as page layouts, master pages, and/or images, etc.</param>
        void Export(SPListItem sourceItem, string directory, bool includeDependencies);
    }
}
